package com.gzy.rpsm_admin.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.gzy.rpsm_admin.mapper.UserMapper;
import com.gzy.rpsm_admin.pojo.PageResult;
import com.gzy.rpsm_admin.pojo.user.LoginUser;
import com.gzy.rpsm_admin.pojo.user.ResUser;
import com.gzy.rpsm_admin.pojo.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public interface UserService {
    ResUser login(LoginUser user);
    public PageResult<User> pageOfUser(Integer current, Integer
            size, String condition, Integer user_type);

    User searchById(int id);

    Integer updateAvatar(User user);


}
